using System;
using Microsoft.SPOT;

namespace Bt.DoorWebServer.Tests
{
    public class Assert
    {

        /// <summary>
        /// Assert whether the specified condition is true.
        /// </summary>
        /// <param name="condition">The condition to test.</param>
        /// <param name="message">The message.</param>
        public static void IsTrue(bool condition, string message)
        {
            if (!condition)
            {
                throw new AssertException(message);
            }
        }
    }
}
